


	{include template('header','common')}
<link href="{THEME_STYLE_PATH}style/css/tellfriend.css" type="text/css" rel="stylesheet" />
<link href="{THEME_STYLE_PATH}style/css/datepicker.css" rel="stylesheet">
<script src="{THEME_STYLE_PATH}style/js/bootstrap-datepicker.js"></script>

<style type="text/css">
#dpd2{
	cursor: not-allowed;
   	background-color: transparent;
}

</style>
	<div id="Mainbox">
		<!--插入侧边栏-->
				<!--侧边栏(登录)-->
<!--插入侧边栏-->
			{include template('sidebar_login','common')}
		<!--插入侧边栏-->
		<!--顶端公告-->
			{include template('top_advance','common')}

		<!--顶端公告-->
		<!--左侧-->		
		<div style="float:left">
		{include template('recom_left','common')}
		</div>
		<!--左侧-->
		<!--右侧-->
		<div class="percenter_right">
			<div class="aboutper_acc">
				<form id="jxy_form_search" method="get">
				<input type="hidden" name="m" value="Member"></input>
				<input type="hidden" name="c" value="Recommend"></input>
				<input type="hidden" name="a" value="re_list"></input>
					<div class="tjhy_search">
						<select name="method" id="method">
						  	<option value="1" {if $info['method']== 1} selected="selected"{/if}>会员ID</option><!--
						  	<option value="2" {if $info['method']== 2} selected="selected"{/if}>QQ号码</option>
						  	--><option value="3" {if $info['method']== 3} selected="selected"{/if}>注册时间</option>
						</select>&nbsp;&nbsp;
						<input type="text" id="dpd1" name="value" value="{$info[value]}"/>&nbsp;&nbsp;
						<a href="javascript:void(0);" id="jxy_search">搜索</a>
					</div>
				</form>
				<div class="tjhy_zjl">
					<strong>总推荐好友</strong>：<span>{$count}</span>个&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<strong>总提成奖励</strong>：<span><?php echo number_format($cash_reward);?></span><img src="{THEME_STYLE_PATH}style/images/ub.gif" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</div>
					<table width="654" border="0" cellpadding="0" cellspacing="1" bgcolor="#dedede" class="hy_table">
					  	<tr>
							<td bgcolor="#ffffff" class="title a1">ID</td>
							<td bgcolor="#ffffff" class="title a2">注册时间</td>
						    <td bgcolor="#ffffff" class="title a3">昵称</td>
							
							<td bgcolor="#ffffff" class="title a3">QQ号码</td>
							
							
							<td bgcolor="#ffffff" class="title a8">下线标识</td>
					  	</tr>
					   {if $list}
					   <?php foreach($list as $v){?>
				        <?php foreach($qq as $s){?>
				 
	  				  	<tr>
	  				  		<td bgcolor="#ffffff" class="title a1">{$v[userid]}</td>
							<td bgcolor="#ffffff" class="title a2"><?php echo date("Y-m-d",$v[regdate])?></td>
						    <td bgcolor="#ffffff" class="title a1"><?php echo getUserInfo($v[userid],'nickname',TRUE);?></td>
							
							<td bgcolor="#ffffff" class="title a3"> {if $v['userid'] == $s['userid']}{$s[qq]}{else}	无{/if}</td>
							<td bgcolor="#ffffff" class="title a8">一级下线</td>
				  		</tr>
				  	
				  		<?php }?>
				  		<?php }?>
				  		{else}
		  				<tr>			  	
		  					<td colspan="8" bgcolor="#ffffff" class="a1">没有记录</td>
		  				</tr>
				  		{/if}
				  		
	  			  	</table>
				  <!--翻页模板-->
					<div class="pageup"></div>
				  <!--翻页模板-->
			</div>
		</div>
		<!--右侧-->
		<div class="clear"></div>
	</div>
	<!--主体-->
	<!--尾部-->
	{include template('footer','common')}
	<!--尾部-->
</body>
</html>
<script typte="text/javascript">
$(document).ready(function() {
		
		$('#jxy_search').click(function(){
		
			
			$('#jxy_form_search').submit();
		});
		var nowTemp = new Date();
	    var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
	
});


</script>
